package cn.wolfcode.shiro.service.impl;

import cn.wolfcode.shiro.entity.User;
import cn.wolfcode.shiro.mapper.UserMapper;
import cn.wolfcode.shiro.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}
